Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alter string concatenation based on recommendation in ticket ONSDESYS… #3477

Conversation

admilne
Copy link
Contributor

@admilne admilne commented Jan 22, 2025

What is the context of this PR?

Applies the change suggested in ONSDESYS-231

I wasn't sure how to test this locally to see if it fixes the specific issue raised but applying the suggested fix doesn't appear to break anything.

Unfortunately I couldn't find anything in the nunjucks documentation around string concatenation but I believe Nunjucks is based on Jinja and the ~ is used for string concatenation. A ChatGPT solution also suggested ~ is the correct way to concatenate strings.

How to review this PR

Run the tests and check nothing breaks.

Checklist

This needs to be completed by the person raising the PR.

  • I have selected the correct Assignee
  • I have linked the correct Issue

@admilne admilne added the Bug Something isn't working label Jan 22, 2025
@admilne admilne requested a review from a team January 22, 2025 09:50
@admilne admilne self-assigned this Jan 22, 2025
Copy link

netlify bot commented Jan 22, 2025

Deploy Preview for ons-design-system-preview ready!

Name Link
🔨 Latest commit a41095a
🔍 Latest deploy log https://app.netlify.com/sites/ons-design-system-preview/deploys/679b9f1adc060900080dbe7a
😎 Deploy Preview https://deploy-preview-3477--ons-design-system-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@SriHV
Copy link
Contributor

SriHV commented Jan 29, 2025

This can be tested in design-system-python-flask-demo PR https://github.com/ONSdigital/design-system-python-flask-demo/pull/15.

Copy link
Contributor

@rmccar rmccar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested in the DS Python repo

@admilne admilne merged commit 2027b02 into main Jan 31, 2025
28 checks passed
@admilne admilne deleted the fix/ONSDESYS-231/copyright-declaration-doesnt-work-with-babel-translation branch January 31, 2025 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants